<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>24点计算器</title>
    <script src="./js/24.js"></script>
    <style>
        * {
            font-size: 0;
            -webkit-overflow-scrolling: touch;
            /* -webkit-tap-highlight-color: rgba(0, 0, 0, 0); */
        }
        body {
            padding: 50px 0 0 0;
            position: fixed;
            margin: 0;
            height: 100%;
            background-color: #00000000;
        }
        textarea {
            width: 100%;
            height: calc(100% - 200px);
            font-size: 20px;
        }
        input,
        button {
            display: inline-block;
            margin: 0;
            height: 50px;
            width: 100%;
            font-size: 30px;
        }
        input {
            width: 50%;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
    <input id="a" value="1" onclick="remove(event)" type="number"/>
    <input id="b" value="2" onclick="remove(event)" type="number"/>
    <input id="c" value="3" onclick="remove(event)" type="number"/>
    <input id="d" value="4" onclick="remove(event)" type="number"/>
    <button onclick="startCalc()">计算</button>
    <textarea id="final"></textarea>
    <script>
        function startCalc() {
            console.log('1234')
            outPut = '';
            count = 0;
            trueCount = 0;
            getOneCalc([a.value, b.value, c.value, d.value]);
            final.innerText = outPut;
        }
        function remove(e) {
            e.srcElement.value = '';
        }
    </script>
</body>
</html>